package com.ruoyi.hxf.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.mapper.BaseMapperPlus;

import com.ruoyi.hxf.domain.Pd;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface PdMapper extends BaseMapperPlus<PdMapper, Pd, Pd> {

    /**
     * 添加缴费信息
     * @param pd
     */
    void insertPd(Pd pd);


    Page<Pd> selectPageList(@Param("page") Page<Pd> page, @Param(Constants.WRAPPER) Wrapper<Pd> queryWrapper);

    List<Pd> selectPdByPayId(@Param("payId") Long payId);

    Pd selectVoByPayId(@Param("userId")Long userId,@Param("payId")Long payId);

    /**
     * 缴费（修改状态）
     * @param pd
     * @return
     */
    int MyUpdateByBo(Pd pd);

}
